<%-- 
    Document   : edit_sala
    Created on : Dec 12, 2009, 12:06:40 AM
    Author     : Milan Boricic <boricic@gmail.com>
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Promena informacija o sali</title>
    </head>
    <body>
    <h:form>
                <h:messages/>
                <h:panelGrid columns="2">
                    <f:facet name="header">
                        <h:outputText value="Informacije o sali:"/>
                    </f:facet>

                    <h:outputLabel for = "naziv"
                                   value = "Naziv" />
                    <h:inputText id="naziv"
                                 value="#{korisnik.izabrana.naziv}"
                                 />

                    <h:outputLabel for = "lokacija"
                                   value = "Lokacija" />
                    <h:inputText id="lokacija"
                                 value="#{korisnik.izabrana.lokacija}"
                                 />

                    <h:outputLabel for = "kapacitet"
                                   value = "Kapacitet" />
                    <h:inputText id="kapacitet"
                                 value="#{korisnik.izabrana.kapacitet}"
                                 >
                        <f:convertNumber type="number"/>
                    </h:inputText>

                    <h:outputLabel for = "brRacunara"
                                   value = "Broj računara" />
                    <h:inputText id="brRacunara"
                                 value="#{korisnik.izabrana.brRacunara}"
                                 >
                        <f:convertNumber type="number"/>
                    </h:inputText>

                    <h:outputLabel for = "imaTablu"
                                   value = "Ima tablu" />
                    <h:selectBooleanCheckbox id="imaTablu"
                                             value="#{korisnik.izabrana.imaTablu}"
                                 />

                    <h:outputLabel for = "imaProjektor"
                                   value = "Ima projektor" />
                    <h:selectBooleanCheckbox id="imaProjektor"
                                             value="#{korisnik.izabrana.imaProjektor}"
                                 />

                    <f:facet name="footer">
                        <h:panelGroup style="display:block; text-align:center">
                            <h:commandButton value="Izmeni" action="#{korisnik.izabrana.edit}" />
                        </h:panelGroup>
                    </f:facet>
                </h:panelGrid>
            </h:form>
    </body>
</html>

